package com.unlcn.ils.crsc.dao.model.sysadmin;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author qichao
 * @since 2017-12-12
 */
@TableName("sys_account")
public class Account extends Model<Account> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	private String code;
	private String pwd;
    /**
     * 0:否
            1:是
     */
	private Integer ismain;
	@TableField("entity_id")
	private Integer entityId;
	@TableField("belong_to")
	private Integer belongTo;
    /**
     * 1:启用
            2:锁定
            3:禁用
     */
	private Integer status;
	@TableField("gmt_create")
	private Date gmtCreate;
    /**
     * 账号头像uri
     */
	private String avatar;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public Integer getIsmain() {
		return ismain;
	}

	public void setIsmain(Integer ismain) {
		this.ismain = ismain;
	}

	public Integer getEntityId() {
		return entityId;
	}

	public void setEntityId(Integer entityId) {
		this.entityId = entityId;
	}

	public Integer getBelongTo() {
		return belongTo;
	}

	public void setBelongTo(Integer belongTo) {
		this.belongTo = belongTo;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Account{" +
			", id=" + id +
			", code=" + code +
			", pwd=" + pwd +
			", ismain=" + ismain +
			", entityId=" + entityId +
			", belongTo=" + belongTo +
			", status=" + status +
			", gmtCreate=" + gmtCreate +
			", avatar=" + avatar +
			"}";
	}
}
